<!DOCTYPE html>
<html>
<head>
<title>失业险享受管理</title>
#parse("sys/header.html")
</head>
<body>
<div id="rrapp" v-cloak>
	<div v-show="showList">
		<div class="grid-btn">
			<div class="form-group col-sm-2">
				<input type="text" class="form-control" v-model="q.name" @keyup.enter="query" placeholder="姓名">
			</div>
			<div class="form-group col-sm-2">
				<input type="text" class="form-control" v-model="q.company" @keyup.enter="query" placeholder="用工单位名称">
			</div>


		<a class="btn btn-default" @click="query">查询</a>
			#if($shiro.hasPermission("unemploymentinsurancemanagement:save"))
			<a class="btn btn-primary" @click="add"><i class="fa fa-plus"></i>&nbsp;新增</a>
			#end
			#if($shiro.hasPermission("unemploymentinsurancemanagement:update"))
			<a class="btn btn-primary" @click="update"><i class="fa fa-pencil-square-o"></i>&nbsp;修改</a>
			#end
			#if($shiro.hasPermission("unemploymentinsurancemanagement:delete"))
			<a class="btn btn-primary" @click="del"><i class="fa fa-trash-o"></i>&nbsp;删除</a>
			#end
			#if($shiro.hasPermission("unemploymentinsurancemanagement:hdqr"))
			<a class="btn btn-primary" @click="hdqr"><i class="fa fa-pencil-square-o"></i>&nbsp;回单确认</a>
			#end
			#if($shiro.hasPermission("unemploymentinsurancemanagement:ffqr"))
			<a class="btn btn-primary" @click="ffqr"><i class="fa fa-pencil-square-o"></i>&nbsp;发放确认</a>
			#end
		</div>
	    <table id="jqGrid"></table>
	    <div id="jqGridPager"></div>
    </div>
    
    <div v-show="!showList&&!showtable" class="panel panel-default">
		<div class="panel-heading">{{title}}</div>
		<form class="form-horizontal">
											<div class="form-group">
			   	<div class="col-sm-2 control-label">姓名</div>
			   	<div class="col-sm-10">
			      <input type="text" class="form-control" readonly="readonly"  @click="popPage"  v-model="unemploymentInsuranceManagement.name" placeholder="请选择"/>
			    </div>
			</div>
									<div class="form-group">
			   	<div class="col-sm-2 control-label">身份证号</div>
			   	<div class="col-sm-10">
			      <input type="text" class="form-control"  readonly="readonly" v-model="unemploymentInsuranceManagement.idno" placeholder="身份证号"/>
			    </div>
			</div>
									<div class="form-group">
			   	<div class="col-sm-2 control-label">年龄</div>
			   	<div class="col-sm-10">
			      <input type="text" class="form-control" readonly="readonly" v-model="unemploymentInsuranceManagement.age" placeholder="年龄"/>
			    </div>
			</div>
									<div class="form-group">
			   	<div class="col-sm-2 control-label">性别</div>
			   	<div class="col-sm-10">
			      <input type="text" class="form-control" readonly="readonly" v-model="unemploymentInsuranceManagement.sex" placeholder="性别"/>
			    </div>
			</div>
									<div class="form-group">
			   	<div class="col-sm-2 control-label">联系电话</div>
			   	<div class="col-sm-10">
			      <input type="text" class="form-control" readonly="readonly" v-model="unemploymentInsuranceManagement.telephone" placeholder="联系电话"/>
			    </div>
			</div>
								<!--	<div class="form-group">
			   	<div class="col-sm-2 control-label">用工单位编号</div>
			   	<div class="col-sm-10">
			      <input type="text" class="form-control" readonly="readonly"  v-model="unemploymentInsuranceManagement.companyid" placeholder="用工单位编号"/>
			    </div>
			</div>-->
									<div class="form-group">
			   	<div class="col-sm-2 control-label">用工单位名称</div>
			   	<div class="col-sm-10">
			      <input type="text" class="form-control" readonly="readonly" v-model="unemploymentInsuranceManagement.company" placeholder="用工单位名称"/>
			    </div>
			</div>

									<div class="form-group">
			   	<div class="col-sm-2 control-label">失业保险应交月数</div>
			   	<div class="col-sm-10">
			      <input type="text" class="form-control" v-model="unemploymentInsuranceManagement.unemploymentInsuranceMonths" placeholder="失业保险应交月数"/>
			    </div>
			</div>

							<div class="form-group">
				<div class="col-sm-2 control-label"></div> 
				<input type="button" class="btn btn-primary" @click="saveOrUpdate" value="确定"/>
				&nbsp;&nbsp;<input type="button" class="btn btn-warning" @click="reload" value="返回"/>
			</div>
		</form>
	</div>

	<div v-show="showtable" class="panel panel-default">
		<div class="panel-heading">{{title}}</div>
		<form class="form-horizontal">

			<div v-show="showtable1" class="form-group">
				<div class="col-sm-2 control-label">回单日期</div>
				<div class="col-sm-10">
					<input type="text" class="form-control" v-model="unemploymentInsuranceManagement.receiptDate" placeholder="回单日期"
						   id="receiptDate" onClick="WdatePicker({dateFmt:'yyyy-MM-dd'})"  readonly="readonly"/>
				</div>
			</div>
			<div v-show="showtable1" class="form-group">
				<div class="col-sm-2 control-label">享受月数</div>
				<div class="col-sm-10">
					<input type="text" class="form-control" v-model="unemploymentInsuranceManagement.enjoyMonths" placeholder="享受月数"/>
				</div>
			</div>
			<div v-show="!showtable1" class="form-group">
				<div class="col-sm-2 control-label">发放日期</div>
				<div class="col-sm-10">
					<input type="text" class="form-control" v-model="unemploymentInsuranceManagement.issueDate" placeholder="发放日期"
						   id="issueDate" onClick="WdatePicker({dateFmt:'yyyy-MM-dd'})"  readonly="readonly"/>
				</div>
			</div>
			<div class="form-group">
				<div class="col-sm-2 control-label"></div>
				<input type="button" class="btn btn-primary" @click="saveOrUpdate" value="确定"/>
				&nbsp;&nbsp;<input type="button" class="btn btn-warning" @click="reload" value="返回"/>
			</div>
		</form>
	</div>
</div>

<!-- 弹出框 -->
<div id="popLayer" style="display: none;padding:10px;">
	<table id="popGrid"></table>
	<div id="popGridPager"></div>
	<!--<ul id="menuTree" class="ztree"></ul>-->
</div>

<script src="${rc.contextPath}/js/hr/unemploymentinsurancemanagement.js?_${date.systemTime}"></script>
</body>
</html>